package com.waterdrop.wlsggk.mapper;


import com.waterdrop.wlsggk.pojo.Material;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
public interface MaterialMapper {

    /**
     * 根据物料列表查询
     *
     * @return
     */
    public List<Material> selectMaterialList(Material material);

    /**
     * 批量删除物料信息
     *
     * @param ids 物料id
     * @return
     */
    public int deleteWlsggkMaterialByIds(Long[] ids);

    /**
     * id查询物料
     *
     * @param id
     * @return
     */
    public Material selectwlsggkMaterialById(Long id);

    /**
     * 新增物料
     *
     * @return
     */

    public int insertWlsggkMaterial(Material material);

    /**
     * 修改物料
     *
     * @return
     */

    public int updateWlsggkMaterial(Material material);
}
